package cn.edu.guet.mapper.om;

import cn.edu.guet.bean.om.FGAll;
import cn.edu.guet.bean.om.FRAll;
import cn.edu.guet.bean.om.FRNAll;
import cn.edu.guet.bean.om.OUsers;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OUserMapper {

    List <OUsers> viewOUsers(Integer gid);
    void updateOUser(String username);

    OUsers findByName(String username);

    List<FRAll> findRoleAll();

    List<FGAll> findGnameAll();

    void update(OUsers oUsers);

    Integer findByGName(String gname);

    List<FRNAll> findRealNameAll();

    void insertOUser(OUsers oUsers);


    List<OUsers> searchOUser(String realname);

    String getRole(String loginusername);

    Integer getGid(String loginusername);
}
